package com.wn32.main.price;

public class PriceServcieImpl2020 implements PriceService{
    @Override
    public double getPrice16(Double price,int count) {
        Double realPrice=price-price*0.01*count;
        if(realPrice<price*0.7){
            realPrice=price*0.7;
        }
        return realPrice;
    }

    @Override
    public double getPrice712(Double price,int count) {
        Double realPrice=price-price*0.01*count;
        if(realPrice<price*0.7){
            realPrice=price*0.7;
        }
        return realPrice+10;
    }
}
